package com.tuanzi.loan.business.service.family;

import com.tuanzi.loan.business.entity.family.LoanWholeSaleComment;
import com.tuanzi.loan.core.service.BaseAuditService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.LoanWholeSaleCommentSearchRequest;
import com.tuanzi.loan.vo.response.family.LoanWholeSaleCommentSearchResponse;
import com.tuanzi.loan.vo.view.family.CommRegionNewInfo;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface LoanWholeSaleCommentService extends BaseAuditService<LoanWholeSaleComment, Long> {
    Page<LoanWholeSaleCommentSearchResponse> list(PageSearcher<LoanWholeSaleCommentSearchRequest> pageSearcher);

    Integer saveLoanWholeSaleComment(LoanWholeSaleCommentSearchRequest request);

    Integer updateStatus(Long id);

    Integer updateLoanWholeSaleComment(LoanWholeSaleComment request);

    List<CommRegionNewInfo> findAllRegionInfo();

    Integer saveLoanWholeSaleComment(LoanWholeSaleComment request);

    LoanWholeSaleComment findLoanWholeSaleCommentById(Long id);

    void OnDelete(LoanWholeSaleCommentSearchResponse response);

    List<LoanWholeSaleComment> findAllByStatus(Integer status);
}
